//======================================================================
// Header file
//
// Written for the book Programming Windows CE
// Copyright (C) 2007 Douglas Boling
//======================================================================

#ifndef _MYBTUTIL_H_
#define _MYBTUTIL_H_

#if defined (__cplusplus)
extern "C" {
#endif

typedef struct {
    TCHAR szName[256];
    BT_ADDR btaddr;
} MYBTDEVICE, *PMYBTDEVICE;

// Finds Bluetooth devices
int FindDevices (PMYBTDEVICE pbtDev, int *pnDevs);

// Registers a BT service
int RegisterBtService (GUID *pguid, byte bChannel, 
                       ULONG *pRecord);

// Clears a BT service from the SDP database
int UnregisterBtService (HWND hWnd, ULONG hRecord);

#if defined (__cplusplus)
}
#endif

#endif // _MYBTUTIL_H_
